package com.groupwork.meeting.service;

import com.groupwork.meeting.Mapper.UserRoleMapper;
import com.groupwork.meeting.entity.User;
import com.groupwork.meeting.entity.UserRole;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 鱼凫
 * @version 1.0
 * Create by 2021/10/28 21:22
 * @Description //TODO User模块用户层接口
 */
@Service
public interface IUserRoleService {
    /**
     * 用户登录
     * @param username 用户名
     * @param password 密码
     * @return 用户数据
     */
    UserRole login(String username, String password);

    /**
     * 用户登录
     * @param username 用户名
     * @return 用户权限数据
     */
    UserRole getByUname(String username);
}
